package net.peelmeagrape.hibernate.sql;

import net.peelmeagrape.hibernate.xmlgen.XmlAttribute;
import net.peelmeagrape.hibernate.xmlgen.XmlElement;

import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@XmlElement(name="loader")
public @interface Loader
{
    /**
     * Should match {@link net.peelmeagrape.hibernate.Query#name()} for some
     * {@link net.peelmeagrape.hibernate.Query}.
     */
    @XmlAttribute("query-ref") String value() default "";
}
